<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
<link rel="stylesheet"
	href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0 {
	margin-top: 70px;
	margin-left: -30px;
}
</style>
<script>
	$(function() {
		$("#periodlist2").addClass("active");
	});
	var saveQuestion = function() {
		var id = $("#id").val();
		var zxzr = $("#zxzr").val();
		var teacherid = $("#teacherid").val();
		var sszx = $("#sszx").val();
		var gw = $("#gw").val();
		var rztime = $("#rztime").val();
		var zpls = $("#zpls").val();
		var zryj = $("#zryj").val();
		var beizhu1 = $("#beizhu1").val();
		var zgyj = $("#zgyj").val();
		var beizhu2 = $("#beizhu2").val();
		var status = $("#status").val();
		var nexttime = $("#nexttime").val();
		var zzzztime = $("#zzzztime").val();
		/* if (mqzd_time != null) {
			alert("该员工将按时转正" + mqzd_time);
		} */
		$.post("${contextPath}/index/add_turnover.json", {
			"id" : id,
			"zxzr" : zxzr,
			"teacherid" : teacherid,
			"sszx" : sszx,
			"gw" : gw,
			"rztime" : rztime,
			"zpls" : zpls,
			"zryj" : zryj,
			"beizhu1" : beizhu1,
			"zgyj" : zgyj,
			"beizhu2" : beizhu2,
			"mqzd_time" : status,
			"xiaci_time" : nexttime,
			"zzzztime" : zzzztime
		}, function(ms) {
			if (ms.msg != 0) {
				alert("操作成功");
				setTimeout(function() {
					window.location.href = "${contextPath}/index/turnover.htm";
				}, 2000);
			} else {
				alert("操作失败");
			}
		});
	};
</script>
</head>
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">title</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">添加员工转正情况</div>
		<table id="infotable">
			<#list list as list>
			<input id="id" type="hidden" value="<#if list.id??>${list.id}</#if>">
			<tr>
				<td width="100"><label class="zt_widthlabel">中心主任:</label></td>
				<td><input type="text" id="zxzr" name="zxzr"
					value="<#if list.zxzr??>${list.zxzr}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">老师姓名</label></td>
				<td><input type="text" id="teacherid" name="teacherid"
					value="<#if list.teacherid??>${list.teacherid}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">所属中心</label></td>
				<td><input type="text" id="sszx" name="sszx"
					value="<#if list.center??>${list.center}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">岗位</label></td>
				<td><input type="text" id="gw" name="gw"
					value="<#if list.gw??>${list.gw}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">入职日期:</label></td>
				<td><input type="text" id="rztime" name="rztime"
					value="<#if list.rztime??>${list.rztime}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">负责招聘的老师:</label></td>
				<td><input type="text" id="zpls" name="zpls"
					value="<#if list.zpls??>${list.zpls}</#if>" size="20"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">目前状态:</label></td>
				<td><input type="text" id="status" name="status"
					value="<#if list.status??>${list.status}</#if>" size="20"
					maxlength="20" rel="DATE::Y-m-d">&nbsp;&nbsp;提前享受转正待遇</td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">试用期时间:</label></td>
				<td>试用期6个月</td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">中心主任意见:</label></td>
				<td><select id="zryj">
						<option value="<#if list.zryj?exists><#if list.zryj=='1'>1</#if><#if list.zryj=='2'>2</#if><#if list.zryj=='3'>3</#if><#if list.zryj=='4'>4</#if></#if>">
						<#if list.zryj?exists><#if list.zryj=="1">建议享受转正待遇</#if><#if list.zryj=="2">建议继续培训</#if><#if list.zryj=="3">建议辞退</#if><#if list.zryj=="4">已提出离职</#if></#if></option>
						<option value="1">建议享受转正待遇</option>
						<option value="2">建议继续培训</option>
						<option value="3">建议辞退</option>
						<option value="4">已提出离职</option>
				</select> <input type="text" id="beizhu1"
					value="<#if list.beizhu1??>${list.beizhu1}</#if>" size="50">
				</td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">部门主管意见:</label></td>
				<td><select id="zgyj">
						<option value="<#if list.zgyj?exists><#if list.zgyj=='1'>1</#if><#if list.zgyj=='2'>2</#if><#if list.zgyj=='3'>3</#if><#if list.zgyj=='4'>4</#if></#if>">
						<#if list.zgyj?exists><#if list.zgyj=="1">建议享受转正待遇</#if><#if list.zgyj=="2">建议继续培训</#if><#if list.zgyj=="3">建议辞退</#if><#if list.zgyj=="4">已提出离职</#if></#if></option>
						<option value="1">建议享受转正待遇</option>
						<option value="2">建议继续培训</option>
						<option value="3">建议辞退</option>
						<option value="4">已提出离职</option>
				</select> <input type="text" id="beizhu2"
					value="<#if list.beizhu2??>${list.beizhu2}</#if>" size="50">
				</td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">下次确认时间:</label></td>
				<td><input type="text" id="nexttime"
					value="<#if list.nexttime??>${list.nexttime}</#if>"
					placeholder="下次确认时间" size="20" maxlength="20" rel="DATE::Y-m-d"></td>
			</tr>
			<tr>
				<td width="100"><label class="zt_widthlabel">最终转正日期:</label></td>
				<td><input type="text" id="zzzztime" name="zzzztime"
					value="<#if list.zzzztime??>${list.zzzztime}</#if>" size="20"
					maxlength="20" rel="DATE::Y-m-d"></td>
			</tr>
			</#list>
		</table>
		<div id="controlbar">
			<input type="button" class="submit" onclick="saveQuestion()"
				value="  保  存  " />
		</div>
	</div>
</body>
</html>